<template>
  <div>
    <el-table
      :data="lista"
      style="width: 100%"
      row-key="id"
      border
      lazy
      :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
    >
      <el-table-column prop="id" label="用户编号"> </el-table-column>
      
      <el-table-column prop="nickname" label="昵称" width="180">
      </el-table-column>

      <!-- <el-table-column   prop="phone" label="手机号" width="180"> -->
       
      <!-- </el-table-column> -->

     

      <el-table-column label="状态">
        <template slot-scope="scope">
          <el-tag v-if="scope.row.status == 1" type="success">启用</el-tag>
          <el-tag v-else type="info">未启用</el-tag>
        </template>
      </el-table-column>

      <el-table-column label="操作" width="150px">
        <template slot-scope="scope">
          <el-button type="primary" size="small" @click="edit(scope.row.uid)"
            >编辑</el-button
          >
       
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
import { reqspecsdelete } from "../../../request/api";
import { successAlert } from '../../../utils/alert'
import { mapActions,mapGetters }from 'vuex'
export default {
  data() {
    return {};
  },
  created() {},
  mounted() {
 
     this.reqlist()
  },
  computed:{
    ...mapGetters({
      lista:"vip/list"
    })
  },
  methods: {
    ...mapActions({
      reqlist:'vip/reqlist'
    }),
    

    edit(id) {
      this.$emit("edit", id);
    },
  },
};
</script>

<style scoped >
</style>
